package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.util.List;

import lombok.Data;


/**
 * @author KING
 * @ClassName: com.qf.entity.Area
 * @Description: 该类的功能描述
 * @date: 2021/10/25 22:06
 */


@Data
@TableName(value = "ams_area")
public class Area {
    /**
     * 分类id
     */
    @TableId(value = "area_id", type = IdType.ASSIGN_ID)
    private Integer areaId;

    /**
     * 名称，可以是省份名称、市名称、区名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 1表示省级菜单,2表示市级菜单,3表示区菜单,
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 0表示没有父级菜单，有父级菜单则填写对应的父级的  cate_id
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 1表示正常，0删除
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 市级菜单
     */
    private List<Area> cities;
    /**
     * 区级菜单
     */
    private List<List<Area>> regions;


    public static final String COL_AREA_ID = "area_id";

    public static final String COL_NAME = "name";

    public static final String COL_LEVEL = "level";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_STATUS = "status";
}
